﻿using HomagGroup.Base.UI.Themes.Resources;
using HomagGroup.Base.UI;
using System.Collections.ObjectModel;
using static HomagChina.CCT.ProcessResourceInternal;
using static HomagChina.CCT.Utility;
using HomagChina.CCT.DataTypeModel;
using HomagChina.CCT.ViewModels;
using Application = System.Windows.Application;
using HomagGroup.BaseUI;

namespace HomagChina.CCT.Router
{
    public class PartsInfoRoute
    {
        public RouterItemDataModel PartsInfoRouteModel { get; set; }

        public PartsInfoRoute()
        {
            PartsInfoRouteModel = new RouterItemDataModel()
            {
                ID = "8",
                viewLabel = GetLocalText("PartsInfo"),
                viewName = "PartsInfo",
                keepalive = false,
                viewModelName = "PartsInfoViewModel",
                ViewModel = new PartsInfoViewModel(),
                userControl = GetUserControlInstance("PartsInfo"),
                Image = null,
                functionKeyBarItems = new ObservableCollection<FunctionKeyBarItemDataModel>
                {
                    //new FunctionKeyBarItemDataModel() {
                    //    Header =GetLocalText("Exit"),
                    //    Position = 12,
                    //    Icon = GetIconBrush(Icon.Close, ImageDecoration.Circle),
                    //    Command = new RelayCommand(() => { Application.Current.Shutdown(); })
                    //},
                    new FunctionKeyBarItemDataModel() {
                        Header = GetLocalText("Info"),
                        Position = 1,
                        Icon = GetIconBrush(Icon.Information, imageDecoration: ImageDecoration.Circle)
                    }
                }
            };
        }
    }
}